{extend name="iframe" /}
{block name="body"}
<div class="layui-card">
    <div class="layui-card-body">
        <div class="layui-btn-group">
            <a href="{:url('admin/educloud/addvideocategory')}" class="layui-btn ajax-iframe" data-width="400px" data-height="250px"><i class="fa fa-plus-circle"></i> 添加分类</a>
        </div>
        <table class="layui-table layui-form">
            <thead>
            <tr>
                <th>ID</th>
                <th>分类名称</th>
                <th width="50">操作</th>
            </tr>
            </thead>
            <tbody>
            {foreach name="list" item="v" empty="$empty"}
            <tr>
                <td>{$v.id}</td>
                <td>{$v.type_name}</td>
                <td>
                    <div class="layui-btn-group mb0">
                        <a href="{:url('admin/educloud/editcategory', ['id' => $v.id])}" class="layui-btn layui-btn-xs"> <i class="layui-icon">&#xe642;</i></a>
                        <a href="{:url('admin/educloud/del', ['id' => $v.id])}" class="layui-btn layui-btn-xs layui-btn-danger ajax-delete"> <i class="layui-icon">&#xe640;</i></a>
                    </div>
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        <div class="page" id="page"></div>
    </div>
</div>
{/block}
